﻿using System.Windows;
using System.Windows.Controls;

namespace LiveTiss.Telas
{
    public partial class AlertChildWindow : ChildWindow
    {
        public AlertChildWindow()
        {
            InitializeComponent();
        }

        public new void Show()
        {
            Show(false);
        }

        public void Show(bool showCancel)
        {
            ButtonCancel.Visibility = showCancel ? System.Windows.Visibility.Visible : System.Windows.Visibility.Collapsed;
            base.Show();
        }

        private void ButtonOK_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        private void ButtonCancel_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }
    }
}

